//
//  TouchTable.m
//  TouchTable
//
//  Created by zhuxuehang on 13-11-29.
//  Copyright (c) 2013年 zhuxuehang. All rights reserved.
//

#import "TouchTable.h"

@implementation TouchTable
@synthesize touchDelegate = _touchDelegate;
//
//- (id)initWithFrame:(CGRect)frame
//{
//    self = [super initWithFrame:frame];
//    if (self) {
//    }
//    return self;
//}
//- (id)initWithFrame:(CGRect)frame style:(UITableViewStyle)style
//{
//    self = [super initWithFrame:frame style:style];
//    if (self) {
//    }
//    return self;
//}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [super touchesBegan:touches withEvent:event];
    
    if ([_touchDelegate conformsToProtocol:@protocol(TouchTableViewDelegate)] &&
        [_touchDelegate respondsToSelector:@selector(tableView:touchesBegan:withEvent:)])
    {
        [_touchDelegate tableView:self touchesBegan:touches withEvent:event];
    }
}

//
//- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
//{
//    [super touchesCancelled:touches withEvent:event];
//    
//    if ([_touchDelegate conformsToProtocol:@protocol(TouchTableViewDelegate)] &&
//        [_touchDelegate respondsToSelector:@selector(tableView:touchesCancelled:withEvent:)])
//    {
//        [_touchDelegate tableView:self touchesCancelled:touches withEvent:event];
//    }
//}
//
//- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
//{
//    [super touchesEnded:touches withEvent:event];
//    
//    if ([_touchDelegate conformsToProtocol:@protocol(TouchTableViewDelegate)] &&
//        [_touchDelegate respondsToSelector:@selector(tableView:touchesEnded:withEvent:)])
//    {
//        [_touchDelegate tableView:self touchesEnded:touches withEvent:event];
//    }
//}
//
//- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
//{
//    [super touchesMoved:touches withEvent:event];
//
//    if ([_touchDelegate conformsToProtocol:@protocol(TTWTableViewDelegate)] &&
//        [_touchDelegate respondsToSelector:@selector(tableView:touchesMoved:withEvent:)])
//    {
//        [_touchDelegate tableView:self touchesMoved:touches withEvent:event];
//    }
//}

@end
